home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD ROM Paradise Collection 4
/
CD ROM Paradise Collection 4 1995 Nov.iso
/
science
/
sm32a.zip
/
LIBRARY
/
FRAC.LI
< prev
next >
Wrap
Text File
|
1993-11-07
|
126b
|
5 lines
# frac(x) gives the fractional part of real number x.
# e.g. frac(2.4) gives 0.4.
frac(x_) := if(isreal(x), x-trunc(x))